package com.ny.zmb.openapi.ysutil.common;

/**
 * @ClassName Constant
 * @Description TODO
 * @Author linxl
 * @Date 2021/4/6 16:30
 * @Version 1.0
 */
public class YsPayConstant {

	public static final String EMAIL_REGEX = "(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])";
	/**
	 * 默认时间格式
	 **/
	public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

	/**
	 * Date默认时区
	 **/
	public static final String DATE_TIMEZONE = "GMT+8";
	public static final String SDK_VERSION = "v2.0.0";
	public static final String SIGN_TYPE = "RSA";
	public static final String CHARSET = "UTF-8";
	// 正式环境-银盛公钥
	public static final String YS_RSA_PRD = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC7SPkmIUf2auwkgbVchMyfeCDgICuA1GKrSwRbDI24UMVhzDgcIxCUmFG5/DfcPJz0d3oV9Ggkd4/7NmteRvmNnOOGNOnmR6AGEKafDpL1mAdpndmpkAZ0f6OVo3Py5JDg2wt8d+u3dF0AFWwd2rrrqscWvxJVB55DnuZfXl2CyQIDAQAB";
	// 测试环境-银盛公钥
	public static final String YS_RSA_TEST = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC7SPkmIUf2auwkgbVchMyfeCDgICuA1GKrSwRbDI24UMVhzDgcIxCUmFG5/DfcPJz0d3oV9Ggkd4/7NmteRvmNnOOGNOnmR6AGEKafDpL1mAdpndmpkAZ0f6OVo3Py5JDg2wt8d+u3dF0AFWwd2rrrqscWvxJVB55DnuZfXl2CyQIDAQAB";
	// public static final String YS_RSA_TEST =
	// "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwFwOoEpGIkzNySAxMuoCGdI5CT9NfOiLCT9DLPxgyQ+UWie+gqktS8G25RnkAPht7qSOsncl1sa0XLQGO7qXWDwrRFQGLp5zRT4kWs/O3sa/Qo/gsb8fzdTZ1tJtC5lRm1qb6/gz331W7Dy+RQYJed1zR2C7t5EUjfWX/gzysh11vNNeF3Xs0Ruq1kWNVKECGqkB0D1tC8T0GwXpBVFPs+We8OgqKePok4BtLGx9GSFw6a60LzH53hsESWPI3GENmNdEiGTZh9EGFTr3aP5zhSO9pCoAaxOaTyO+vpDj9XRWvqWcWbMZryjMCmem918q6F2n3HOX2105HSL24qKgZQIDAQAB";

	public final static String ENV_PRD = "prd";
	public final static String ENV_TEST = "test";

	/************* 交易状态 *******************/
	// 渠道状态：成功
	public static String ORDER_STATUS_SUCCESS = "success";
	// 渠道状态：失败
	public static String ORDER_STATUS_FAIL = "fail";
	// 渠道状态：已受理，待处理
	public static String ORDER_STATUS_PROCESSING = "accept";
	// 渠道状态：待支付
	public static String ORDER_STATUS_WAIT_PAY = "waitpay";
	// 渠道状态：交易关闭
	public static String ORDER_STATUS_COLSE = "close";
	// 渠道状态：未知
	public static String ORDER_STATUS_UNKOWN = "unknow";
	// 渠道状态：交易退款 ，POS交易撤销
	public static String ORDER_STATUS_REFUND = "refund";
	// 渠道状态：不存在
	public static String ORDER_STATUS_NOT_EXIST = "notexist";
	// 渠道状态：部分退款
	public static String ORDER_STATUS_PART_REFUND = "partrefund";

	// POS交易渠道状态：冲正
	public static String ORDER_STATUS_REVERSE = "reverse";

	// 代付退票交易渠道状态：冲正
	public static String ORDER_STATUS_DF_REVERSE = "dfreverse";

	/************* 交易状态 *******************/
}
